//
//  UIColor+Extension.swift
//  sina
//
//  Created by 江先铨 on 15/11/16.
//  Copyright © 2015年 jxqstatic. All rights reserved.
//

import UIKit


extension UIColor {

     class func randomColor() -> UIColor { //定义一个随机颜色
    
        let r: CGFloat = CGFloat(random() % 255) / 255.0
        let g: CGFloat = CGFloat(random() % 255) / 255.0
        let b: CGFloat = CGFloat(random() % 255) / 255.0
        return UIColor(red: r, green: g, blue: b, alpha: 1.0)
    }
}